package com.qf.utils;

import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;

public class MD5Utils {
    public String getMD5(String password){
        String type="MD5";
        //加密次数
        int interations=1023;
        //加盐
        ByteSource banciyuan = ByteSource.Util.bytes("banciyuan");
        SimpleHash simpleHash = new SimpleHash(type, password, banciyuan, interations);
        return simpleHash.toString();
    }

}
